/**
 * API响应基础类型
 */
export interface ApiResponse<T = any> {
    code: number
    message: string
    data: T
    timestamp?: number
}

/**
 * 分页参数
 */
export interface PaginationParams {
    page: number
    pageSize: number
}

/**
 * 分页响应
 */
export interface PaginatedResponse<T = any> extends ApiResponse {
    data: {
        list: T[]
        total: number
        page: number
        pageSize: number
        totalPages: number
    }
}

/**
 * 测试数据类型
 */
export interface TestData {
    imgSrc: string
    title: string
    content: string
    timestamp: string
    items: Array<{
        id: number
        name: string
    }>
    swiperList: string[]
}